package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 角色菜单表
 * @TableName role_menu
 */

@Schema(description = "角色菜单关系信息")
@EqualsAndHashCode(callSuper = true)
@TableName(value ="role_menu")
@Data
public class RoleMenu extends BaseEntity implements Serializable {
    @Schema(description = "角色id")
    private Long rid;

    @Schema(description = "菜单id")
    private Long mid;

    @Schema(description = "页面中可执行的操作")
    private String actions;

    @Schema(description = "是否是半选。1：半选，0;全选")
    private Integer isHalf;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}